package com.lotusfall.api;

import com.github.pagehelper.PageInfo;
import com.lotusfall.pojo.HouseResource;
import com.lotusfall.service.HouseResourcesService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService(version = "1.0")
public class ApiHouseResourcesServiceImpl implements ApiHouseResourcesService{
    @Autowired
    HouseResourcesService houseResourcesService;

    @Override
    public int saveHouseResources(HouseResource houseResource) {
        return this.houseResourcesService.saveHouseResources(houseResource);
    }

    @Override
    public PageInfo<HouseResource> queryHouseResourcesList(int page, int pageSize) {
        return this.houseResourcesService.queryHouseResourcesList(page,pageSize);
    }

    @Override
    public HouseResource queryHouseResourcesById(Long id) {
        return this.houseResourcesService.queryHouseResourcesById(id);
    }

    @Override
    public boolean updateHouseResource(HouseResource houseResources) {
        return this.houseResourcesService.updateHouseResource(houseResources);
    }

    @Override
    public PageInfo<HouseResource> queryHouseResourcesListByNum(Integer page, Integer pageSize, Integer type, Integer ori, Integer area, Integer rent) {
        return this.houseResourcesService.queryHouseResourcesListByNum(page,pageSize,type,ori,area,rent);
    }
}
